package net.realsee.service.wcs.device;

import com.baomidou.mybatisplus.extension.service.IService;
import net.realsee.domain.wcs.device.WcsEquipmentControl;
import net.realsee.domain.wcs.device.bo.WcsEquipmentControlBo;
import net.realsee.domain.wcs.device.vo.WcsEquipmentControlVo;
import net.realsee.framework.core.domain.PageQuery;
import net.realsee.framework.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 设备控制Service接口
 *
 * @author realsee
 * @date 2023-08-11
 */
public interface IWcsEquipmentControlService extends IService<WcsEquipmentControl> {

    /**
     * 查询设备控制
     */
    WcsEquipmentControlVo selectVoById(Long id);

    /**
     * 查询设备控制列表
     */
    TableDataInfo<WcsEquipmentControlVo> selectVoPage(WcsEquipmentControlBo bo, PageQuery pageQuery);

    /**
     * 查询设备控制列表
     */
    List<WcsEquipmentControlVo> selectVoList(WcsEquipmentControlBo bo);

    /**
     * 新增设备控制
     */
    Boolean insertByBo(WcsEquipmentControlBo bo);

    /**
     * 修改设备控制
     */
    Boolean updateByBo(WcsEquipmentControlBo bo);

    /**
     * 校验并批量删除设备控制信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids);
}
